package me.keiwu.user.domain;

import lombok.Data;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by kei on 07/02/2018.
 */
@Data
@Entity
public class UserStatistics {

    @Id
    private Long userId;

    /**
     * 挖金币次数
     */
    @ColumnDefault("0")
    @Column(nullable = false)
    private Integer stealGoldCount = 0;

    /**
     * 留言次数
     */
    @ColumnDefault("0")
    @Column(nullable = false)
    private Integer commentCount = 0;

}
